import request from '@/utils/request'

export const getBaseData = (params) =>{
    return request({
        url:'/efficiencyWarning/search',
        method:'get',
        params:params
    })
}

export const saveData = (data) =>{
    return request({
        url:'/efficiencyWarning/addOrUpdateInfo',
        method:'post',
        data:data
    })
}

export function deleteData(params){
    return request.delete('/efficiencyWarning/deleteInfo/' + params)
}